//
// Created by hkkzzxz on 24-9-8.
//

#include "EmployeeTodayAttendance.h"

void EmployeeTodayAttendance::FillFromRow(sql::ResultSet *rs) {
    checkInTime = rs->getString("check_in_time");
    checkOutTime = rs->getString("check_out_time");
    late = rs->getInt("late");
    leaveEarly = rs->getInt("leave_early");
}

const std::string &EmployeeTodayAttendance::getCheckInTime() const {
    return checkInTime;
}

const std::string &EmployeeTodayAttendance::getCheckOutTime() const {
    return checkOutTime;
}

bool EmployeeTodayAttendance::isLate() const {
    return late;
}

bool EmployeeTodayAttendance::isLeaveEarly() const {
    return leaveEarly;
}
